<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>mootools.js  测试</title>
		<script src="../../common/libs/mootools.js" type="text/javascript"></script>
		
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
	</head>
	<body>
		<a href='##' id="f"></a>
		<script>
			var fns = [
				["Object.each", function(){ return Object.each(["1","2"], log); }],
				["Class", function(){
					//  create a class, a child class and three instance of these classes.
					var MYCLASS = new Class({
						types : [],
						initialize: function(args){
							log(args + "    executed");
						}
					});
					
					var MYCLASS2 = new Class({
						values : [],
						Extends: MYCLASS,
						constructor: function(args){
							this.base(args);
						}
					});
					
					var instance1 = new MYCLASS('a'),
						instance2 = new MYCLASS2('f'),
						instance5 = new MYCLASS2('s');
						instance2.types.push(2);
					log(instance2.types);
					log(instance5.types);
				}],
				["mt.ClassEvent",function(){
					var CAT = new Class({
						Extends: Events
					});
					
					var cat = new CAT();
					
					cat.addEvent("say", function(){
						log(3);
					})
					
					cat.fireEvent("say");
				}]
			];
		</script>
	</body>
</html>
